package com.lmpop.createIndex.search;

import com.lmpop.createIndex.searchModel.SearchData;
import com.lmpop.createIndex.searchModel.SearchModel;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class AdvinfoIndexFiles
{
  public ProperUtil properUtil;
  private String file_path;

  public AdvinfoIndexFiles()
  {
    this.properUtil = new ProperUtil();
    this.file_path = this.properUtil.getFilePathByModel("advinfo");
  }

  public List getAdvinfoInfo(Map paraMap) throws IOException {
    ArrayList showList = new ArrayList();
    SearchData search = new SearchData();
    ArrayList paraList = new ArrayList();

    String pos_id = "";
    if (paraMap.get("pos_id") != null) pos_id = paraMap.get("pos_id").toString();
    paraList.add(new SearchModel("0", "pos_id", pos_id));
    showList = search.getSearchInfo(this.file_path, paraList);
    return showList;
  }
}